package com.report.repository;

import com.report.entity.Voucher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface VoucherRepository extends JpaRepository<Voucher, Integer> {

    void deleteAllByProjectNoAndAuditCompanyUscc(String projectNo, String auditCompanyUscc);

    List<Voucher> findByVoucherNumberAndVoucherDate(String voucherNumber, Date voucherDate);
}
